Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: speed up audience mapper validation #961

Merged

Conversation

sybereal
Copy link
Contributor

Do not load all clients when validating client audience for audience mappers. Instead, try to fetch the client in question directly.

Closes #960

Copy link
Contributor

@thomasdarimont thomasdarimont left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sschu sschu enabled auto-merge (squash) January 23, 2025 10:26
auto-merge was automatically disabled January 23, 2025 10:29

Head branch was pushed to by a user without write access

@sybereal sybereal force-pushed the 960-audience-mapper-dont-load-all-clients branch from 26e16c3 to 39fe68b Compare January 23, 2025 10:29
@sybereal
Copy link
Contributor Author

Thanks for the review. Rebased onto current main.

@sschu
Copy link
Contributor

sschu commented Jan 23, 2025

@sybereal Can you please also sign-off your commits?

Do not load all clients when validating client audience for audience
mappers. Instead, try to fetch the client in question directly.

Signed-off-by: Simon Engmann <[email protected]>
@sybereal sybereal force-pushed the 960-audience-mapper-dont-load-all-clients branch from 39fe68b to 8649bd2 Compare January 23, 2025 10:35
@sybereal
Copy link
Contributor Author

Sure, no problem. Done.

@sschu sschu merged commit 0254dd0 into keycloak:main Jan 23, 2025
9 checks passed
angeloxx pushed a commit to angeloxx/terraform-provider-keycloak that referenced this pull request Jan 26, 2025
Do not load all clients when validating client audience for audience
mappers. Instead, try to fetch the client in question directly.

Signed-off-by: Simon Engmann <[email protected]>
Signed-off-by: angeloxx <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

keycloak_openid_audience_protocol_mapper: Unpaginated request to /admin/realms/${realm}/clients
3 participants